<template>
 <div>
   <el-carousel indicator-position="none">
    <el-carousel-item v-for="item in list" :key="item.img" class="panel" >
      <img :src="item.img" class="img-fluid tmp-img" alt="">
     <span>{{item.text}}</span>
    </el-carousel-item>
  </el-carousel>
 </div>
</template>

<script>
 export default {
   data () {
     return {
       list:this.imgs
     }
   },
   props:['imgs'],
   components: {

   },
   created(){
     
     
   }
 }
</script>
<style>
 
  .el-carousel__item span{
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color:#fff;
    width: 40%;
    text-align: center;
    font-size: 16px;         
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    
  }
  .tmp-img{
  height: 100% !important;
  width: 100%;
}
</style>

<style scoped lang='less'>

 
</style>
